lib/repo-refs: Add first version of ostree_repo_resolve_collection_ref()
authorPhilip Withnall <withnall@endlessm.com>
Tue, 26 Sep 2017 14:15:57 +0000 (15:15 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 27 Sep 2017 14:44:00 +0000 (14:44 +0000)
commit149aec10997963c4447279bb7ca96a9925529d22
tree239e56899f2528e16bea6a39cdda49f4a560e719
parent9546e6795e8778f00d6df5dfbd3905754b3de05b
lib/repo-refs: Add first version of ostree_repo_resolve_collection_ref()

This is a parallel for ostree_repo_resolve_rev_ext() which works on
collection–refs. At the moment, the implementation is simple and uses
ostree_repo_list_collection_refs(). In future, it could be rewritten to
check the checksum directly rather than enumerating all
potentially-relevant checksums.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1182
Approved by: cgwalters
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo.h